package com.tourismwebsite.comment.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
@Getter
@Setter
public class CommentDTO {

    /**
     * 评论ID
     */
    @ApiModelProperty(value = "评论ID",example = "1")
    private Integer commentId;

    /**
     * 评论的文章
     */
    @ApiModelProperty(value = "评论的文章ID",example = "1")
    private Integer articleId;

    /**
     * 评论人
     */
    @ApiModelProperty(value = "评论人",example = "tom")
    private Integer userId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "评论时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容",example = "what can I say")
    private String content;

}
